#ifndef  _U_THREAD_H_
#define  _U_THREAD_H_

#include "udpunit.h"
#include "usocket.h"
#include "../define/define.h"
#include "../util/bthread.h"
#include "../util/event.h"
#include "../util/log.h"

class UDPSINK;
class UDPServer;

class uthread : public bthread
{
public:

	uthread(UDPSINK* udpsink,usocket* udp);    
	~uthread();

protected:

	void Execute();

private:

	UDPSINK* m_sink;
    usocket* m_udp;
	event    m_event;
	logfile* m_log;
};
#endif
